﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class UIManager : MonoBehaviour
{
    // Start is called before the first frame update
    public static UIManager Instance;
    private Text sunNumText;

    private void Awake()
    {
        Instance = this;
    }
    void Start()
    {
        sunNumText = transform.Find("MainPanel/SunNumText").GetComponent<Text>();
    }

    // Update is called once per frame
    public void UpdateSunNum(int num)
    {
        sunNumText.text = num.ToString();
    }

    public Vector3 GetSunTextPos()
    {
        return sunNumText.transform.position;
    }
}
